<?php
/**
 * Created by PhpStorm.
 * User: 王世鹏
 * Date: 2018/3/5
 * Time: 15:48
 */

namespace app\index\controller;


use think\Controller;
use think\Db;

class Article extends Controller

{
    public function show()
    {

        $data = Db::name("Article")->select();
        $this->assign("data",$data);
        return $this->fetch();
    }
    public function one($id)
    {
        $data = Db::name("Article")->find($id);
        $this->assign("data",$data);
        return $this->fetch();
    }


    public function all($mm)
    {
        $data = Db::name("Article")->select();
        $this->assign("data",$data);
        dump($mm);
        return $this->fetch();
    }

}